package com.jxc.service.impl;

import com.jxc.mapper.CustomerReturnListGoodsMapper;
import com.jxc.service.CustomerReturnListGoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CustomerReturnListGoodsServiceImpl implements CustomerReturnListGoodsService{
    @Resource
    private CustomerReturnListGoodsMapper customerReturnListGoodsMapper;
    @Override
    public Integer getTotalByGoodsId(Integer goodsId) {

        return customerReturnListGoodsMapper.getTotalByGoodsId(goodsId)==null?0:customerReturnListGoodsMapper.getTotalByGoodsId(goodsId);
    }
}
